package ioc;

import ioc.bean.HelloWorld;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanPostProcessorApp {
    public static void main(String[] args) {
        final AbstractApplicationContext context = new ClassPathXmlApplicationContext("ioc\\beans.xml");
        final HelloWorld bean = (HelloWorld) context.getBean("helloworld3");
        bean.getMessage();
        context.registerShutdownHook();
    }
}
